<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/20/020
 * Time: 10:23
 */

namespace app\admin\controller;
use app\api\model\User as UserModel;


class User extends Common {

    /**
     * 用户列表
     * @return \think\response\View
     */
    public function index() {
        if (request()->isAjax()) {
            $data = UserModel::getList()->toArray();
            return admin_return_data('用户列表', $data['total'], $data['data']);
        }
        return view();
    }
}